<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="dialogflow_v2.html">Dialogflow API</a> . <a href="dialogflow_v2.projects.html">projects</a> . <a href="dialogflow_v2.projects.conversations.html">conversations</a> . <a href="dialogflow_v2.projects.conversations.participants.html">participants</a> . <a href="dialogflow_v2.projects.conversations.participants.suggestions.html">suggestions</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#suggestArticles">suggestArticles(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Gets suggested articles for a participant based on specific historical messages.</p>
<p class="toc_element">
  <code><a href="#suggestFaqAnswers">suggestFaqAnswers(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Gets suggested faq answers for a participant based on specific historical messages.</p>
<p class="toc_element">
  <code><a href="#suggestKnowledgeAssist">suggestKnowledgeAssist(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Gets knowledge assist suggestions based on historical messages.</p>
<p class="toc_element">
  <code><a href="#suggestSmartReplies">suggestSmartReplies(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Gets smart replies for a participant based on specific historical messages.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="suggestArticles">suggestArticles(parent, body=None, x__xgafv=None)</code>
  <pre>Gets suggested articles for a participant based on specific historical messages.

Args:
  parent: string, Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`. (required)
  body: object, The request body.
    The object takes the form of:

{ # The request message for Participants.SuggestArticles.
  &quot;assistQueryParams&quot;: { # Represents the parameters of human assist query. # Parameters for a human assist query.
    &quot;documentsMetadataFilters&quot;: { # Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have &#x27;US&#x27; or &#x27;CA&#x27; in their market metadata values and &#x27;agent&#x27; in their user metadata values will be ``` documents_metadata_filters { key: &quot;market&quot; value: &quot;US,CA&quot; } documents_metadata_filters { key: &quot;user&quot; value: &quot;agent&quot; } ```
      &quot;a_key&quot;: &quot;A String&quot;,
    },
  },
  &quot;contextSize&quot;: 42, # Optional. Max number of messages prior to and including latest_message to use as context when compiling the suggestion. By default 20 and at most 50.
  &quot;latestMessage&quot;: &quot;A String&quot;, # Optional. The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: `projects//locations//conversations//messages/`.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The response message for Participants.SuggestArticles.
  &quot;articleAnswers&quot;: [ # Articles ordered by score in descending order.
    { # Represents article answer.
      &quot;answerRecord&quot;: &quot;A String&quot;, # The name of answer record, in the format of &quot;projects//locations//answerRecords/&quot;
      &quot;confidence&quot;: 3.14, # Article match confidence. The system&#x27;s confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
      &quot;metadata&quot;: { # A map that contains metadata about the answer and the document from which it originates.
        &quot;a_key&quot;: &quot;A String&quot;,
      },
      &quot;snippets&quot;: [ # Article snippets.
        &quot;A String&quot;,
      ],
      &quot;title&quot;: &quot;A String&quot;, # The article title.
      &quot;uri&quot;: &quot;A String&quot;, # The article URI.
    },
  ],
  &quot;contextSize&quot;: 42, # Number of messages prior to and including latest_message to compile the suggestion. It may be smaller than the SuggestArticlesRequest.context_size field in the request if there aren&#x27;t that many messages in the conversation.
  &quot;latestMessage&quot;: &quot;A String&quot;, # The name of the latest conversation message used to compile suggestion for. Format: `projects//locations//conversations//messages/`.
}</pre>
</div>

<div class="method">
    <code class="details" id="suggestFaqAnswers">suggestFaqAnswers(parent, body=None, x__xgafv=None)</code>
  <pre>Gets suggested faq answers for a participant based on specific historical messages.

Args:
  parent: string, Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`. (required)
  body: object, The request body.
    The object takes the form of:

{ # The request message for Participants.SuggestFaqAnswers.
  &quot;assistQueryParams&quot;: { # Represents the parameters of human assist query. # Parameters for a human assist query.
    &quot;documentsMetadataFilters&quot;: { # Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have &#x27;US&#x27; or &#x27;CA&#x27; in their market metadata values and &#x27;agent&#x27; in their user metadata values will be ``` documents_metadata_filters { key: &quot;market&quot; value: &quot;US,CA&quot; } documents_metadata_filters { key: &quot;user&quot; value: &quot;agent&quot; } ```
      &quot;a_key&quot;: &quot;A String&quot;,
    },
  },
  &quot;contextSize&quot;: 42, # Optional. Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 20 and at most 50.
  &quot;latestMessage&quot;: &quot;A String&quot;, # Optional. The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: `projects//locations//conversations//messages/`.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The request message for Participants.SuggestFaqAnswers.
  &quot;contextSize&quot;: 42, # Number of messages prior to and including latest_message to compile the suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size field in the request if there aren&#x27;t that many messages in the conversation.
  &quot;faqAnswers&quot;: [ # Answers extracted from FAQ documents.
    { # Represents answer from &quot;frequently asked questions&quot;.
      &quot;answer&quot;: &quot;A String&quot;, # The piece of text from the `source` knowledge base document.
      &quot;answerRecord&quot;: &quot;A String&quot;, # The name of answer record, in the format of &quot;projects//locations//answerRecords/&quot;
      &quot;confidence&quot;: 3.14, # The system&#x27;s confidence score that this Knowledge answer is a good match for this conversational query, range from 0.0 (completely uncertain) to 1.0 (completely certain).
      &quot;metadata&quot;: { # A map that contains metadata about the answer and the document from which it originates.
        &quot;a_key&quot;: &quot;A String&quot;,
      },
      &quot;question&quot;: &quot;A String&quot;, # The corresponding FAQ question.
      &quot;source&quot;: &quot;A String&quot;, # Indicates which Knowledge Document this answer was extracted from. Format: `projects//locations//agent/knowledgeBases//documents/`.
    },
  ],
  &quot;latestMessage&quot;: &quot;A String&quot;, # The name of the latest conversation message used to compile suggestion for. Format: `projects//locations//conversations//messages/`.
}</pre>
</div>

<div class="method">
    <code class="details" id="suggestKnowledgeAssist">suggestKnowledgeAssist(parent, body=None, x__xgafv=None)</code>
  <pre>Gets knowledge assist suggestions based on historical messages.

Args:
  parent: string, Required. The name of the participant to fetch suggestions for. Format: `projects//locations//conversations//participants/`. (required)
  body: object, The request body.
    The object takes the form of:

{ # The request message for Participants.SuggestKnowledgeAssist.
  &quot;contextSize&quot;: 42, # Optional. Max number of messages prior to and including latest_message to use as context when compiling the suggestion. The context size is by default 100 and at most 100.
  &quot;latestMessage&quot;: &quot;A String&quot;, # Optional. The name of the latest conversation message to compile suggestions for. If empty, it will be the latest message of the conversation. Format: `projects//locations//conversations//messages/`.
  &quot;previousSuggestedQuery&quot;: &quot;A String&quot;, # Optional. The previously suggested query for the given conversation. This helps identify whether the next suggestion we generate is reasonably different from the previous one. This is useful to avoid similar suggestions within the conversation.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The response message for Participants.SuggestKnowledgeAssist.
  &quot;contextSize&quot;: 42, # Number of messages prior to and including latest_message to compile the suggestion. It may be smaller than the SuggestKnowledgeAssistRequest.context_size field in the request if there are fewer messages in the conversation.
  &quot;knowledgeAssistAnswer&quot;: { # Represents a Knowledge Assist answer. # Output only. Knowledge Assist suggestion.
    &quot;answerRecord&quot;: &quot;A String&quot;, # The name of the answer record. Format: `projects//locations//answer Records/`.
    &quot;suggestedQuery&quot;: { # Represents a suggested query. # The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion.
      &quot;queryText&quot;: &quot;A String&quot;, # Suggested query text.
    },
    &quot;suggestedQueryAnswer&quot;: { # Represents an answer from Knowledge. Currently supports FAQ and Generative answers. # The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query.
      &quot;answerText&quot;: &quot;A String&quot;, # The piece of text from the `source` that answers this suggested query.
      &quot;faqSource&quot;: { # Details about source of FAQ answer. # Populated if the prediction came from FAQ.
        &quot;question&quot;: &quot;A String&quot;, # The corresponding FAQ question.
      },
      &quot;generativeSource&quot;: { # Details about source of Generative answer. # Populated if the prediction was Generative.
        &quot;snippets&quot;: [ # All snippets used for this Generative Prediction, with their source URI and data.
          { # Snippet Source for a Generative Prediction.
            &quot;metadata&quot;: { # Metadata of the document.
              &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
            },
            &quot;text&quot;: &quot;A String&quot;, # Text taken from that URI.
            &quot;title&quot;: &quot;A String&quot;, # Title of the document.
            &quot;uri&quot;: &quot;A String&quot;, # URI the data is sourced from.
          },
        ],
      },
    },
  },
  &quot;latestMessage&quot;: &quot;A String&quot;, # The name of the latest conversation message used to compile suggestion for. Format: `projects//locations//conversations//messages/`.
}</pre>
</div>

<div class="method">
    <code class="details" id="suggestSmartReplies">suggestSmartReplies(parent, body=None, x__xgafv=None)</code>
  <pre>Gets smart replies for a participant based on specific historical messages.

Args:
  parent: string, Required. The name of the participant to fetch suggestion for. Format: `projects//locations//conversations//participants/`. (required)
  body: object, The request body.
    The object takes the form of:

{ # The request message for Participants.SuggestSmartReplies.
  &quot;contextSize&quot;: 42, # Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 20 and at most 50.
  &quot;currentTextInput&quot;: { # Auxiliary proto messages. Represents the natural language text to be processed. # The current natural language text segment to compile suggestion for. This provides a way for user to get follow up smart reply suggestion after a smart reply selection, without sending a text message.
    &quot;languageCode&quot;: &quot;A String&quot;, # Required. The language of this conversational query. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.
    &quot;text&quot;: &quot;A String&quot;, # Required. The UTF-8 encoded natural language text to be processed. Text length must not exceed 256 characters for virtual agent interactions.
  },
  &quot;latestMessage&quot;: &quot;A String&quot;, # The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: `projects//locations//conversations//messages/`.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The response message for Participants.SuggestSmartReplies.
  &quot;contextSize&quot;: 42, # Number of messages prior to and including latest_message to compile the suggestion. It may be smaller than the SuggestSmartRepliesRequest.context_size field in the request if there aren&#x27;t that many messages in the conversation.
  &quot;latestMessage&quot;: &quot;A String&quot;, # The name of the latest conversation message used to compile suggestion for. Format: `projects//locations//conversations//messages/`.
  &quot;smartReplyAnswers&quot;: [ # Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
    { # Represents a smart reply answer.
      &quot;answerRecord&quot;: &quot;A String&quot;, # The name of answer record, in the format of &quot;projects//locations//answerRecords/&quot;
      &quot;confidence&quot;: 3.14, # Smart reply confidence. The system&#x27;s confidence score that this reply is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
      &quot;reply&quot;: &quot;A String&quot;, # The content of the reply.
    },
  ],
}</pre>
</div>

</body></html>